﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media.Imaging;

namespace Wpf.CommonTools.Net
{
    public class WebHelper
    {
        public static BitmapImage GetImageFromUrl(string url)
        {
            BitmapImage bi3 = new BitmapImage();
            bi3.BeginInit();
            bi3.UriSource = new Uri(url, UriKind.Absolute);
            bi3.EndInit();
            return bi3;
        }

    }
}
